#ifndef CMDPARAMWIDGET_H
#define CMDPARAMWIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QLabel>
#include <QMessageBox>
#include <QGridLayout>
#include <QPushButton>
#include <QButtonGroup>
#include <QDebug>

class QCmdParamWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QCmdParamWidget(QString sWidgetName,int nWorkModeType,QMap<int,QString> cmdMap,QWidget *parent = nullptr);

signals:
    void signal_set_cmd_value(int nCmdIndex,QByteArray data,int nItemByteNum);

public slots:

    void onButtonClicked(int nIndex);


public:



private:

    void InitUI();

    int _nWorkModeType;

    QMap<int,QString> _cmdMap;
    QButtonGroup* _pButtonGroup;
    QString _sWidgetName;




};

#endif // ZEROPARAMWIDGET_H
